<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: libemb::CANFrame Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>libemb</b></li><li class="navelem"><a class="el" href="classlibemb_1_1_c_a_n_frame.html">CANFrame</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classlibemb_1_1_c_a_n_frame-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">libemb::CANFrame Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>CAN帧  
 <a href="classlibemb_1_1_c_a_n_frame.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_socket_8h_source.html">Socket.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9d3566297b0925c99c2b738c885c6084"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_c_a_n_frame.html#a9d3566297b0925c99c2b738c885c6084">CANFrame</a> (<a class="el" href="_base_type_8h.html#a01991db9cc388cf9815386e13465f332">uint32</a> <a class="el" href="classlibemb_1_1_c_a_n_frame.html#a2ec1810218164334e41fa8c8ab5e23b6">canid</a>, char *<a class="el" href="classlibemb_1_1_c_a_n_frame.html#a876fcebd111b67cbdb9f41a66722915f">data</a>, <a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a> len)</td></tr>
<tr class="memdesc:a9d3566297b0925c99c2b738c885c6084"><td class="mdescLeft">&#160;</td><td class="mdescRight">CAN帧构造函数  <a href="classlibemb_1_1_c_a_n_frame.html#a9d3566297b0925c99c2b738c885c6084">More...</a><br /></td></tr>
<tr class="separator:a9d3566297b0925c99c2b738c885c6084"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96a313e7ef4d15d79f6b292c4d03b6de"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_c_a_n_frame.html#a96a313e7ef4d15d79f6b292c4d03b6de">CANFrame</a> (<a class="el" href="_base_type_8h.html#a01991db9cc388cf9815386e13465f332">uint32</a> <a class="el" href="classlibemb_1_1_c_a_n_frame.html#a5e7e0059049f843dd1c01ac8737268fe">id</a>, char *<a class="el" href="classlibemb_1_1_c_a_n_frame.html#a876fcebd111b67cbdb9f41a66722915f">data</a>, <a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a> len, <a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a> <a class="el" href="classlibemb_1_1_c_a_n_frame.html#aebbf7eadd5abaf28ae3260947674b607">format</a>)</td></tr>
<tr class="memdesc:a96a313e7ef4d15d79f6b292c4d03b6de"><td class="mdescLeft">&#160;</td><td class="mdescRight">CAN帧构造函数  <a href="classlibemb_1_1_c_a_n_frame.html#a96a313e7ef4d15d79f6b292c4d03b6de">More...</a><br /></td></tr>
<tr class="separator:a96a313e7ef4d15d79f6b292c4d03b6de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebbf7eadd5abaf28ae3260947674b607"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_c_a_n_frame.html#aebbf7eadd5abaf28ae3260947674b607">format</a> ()</td></tr>
<tr class="memdesc:aebbf7eadd5abaf28ae3260947674b607"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取帧格式  <a href="classlibemb_1_1_c_a_n_frame.html#aebbf7eadd5abaf28ae3260947674b607">More...</a><br /></td></tr>
<tr class="separator:aebbf7eadd5abaf28ae3260947674b607"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0c92ba7b884be4d9a35e6db4bf6332c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_c_a_n_frame.html#ae0c92ba7b884be4d9a35e6db4bf6332c">type</a> ()</td></tr>
<tr class="memdesc:ae0c92ba7b884be4d9a35e6db4bf6332c"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取帧类型  <a href="classlibemb_1_1_c_a_n_frame.html#ae0c92ba7b884be4d9a35e6db4bf6332c">More...</a><br /></td></tr>
<tr class="separator:ae0c92ba7b884be4d9a35e6db4bf6332c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82fc12322f701770a392b46c623e6fa6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_c_a_n_frame.html#a82fc12322f701770a392b46c623e6fa6">error</a> ()</td></tr>
<tr class="memdesc:a82fc12322f701770a392b46c623e6fa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取帧错误  <a href="classlibemb_1_1_c_a_n_frame.html#a82fc12322f701770a392b46c623e6fa6">More...</a><br /></td></tr>
<tr class="separator:a82fc12322f701770a392b46c623e6fa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e7e0059049f843dd1c01ac8737268fe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_base_type_8h.html#a01991db9cc388cf9815386e13465f332">uint32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_c_a_n_frame.html#a5e7e0059049f843dd1c01ac8737268fe">id</a> ()</td></tr>
<tr class="memdesc:a5e7e0059049f843dd1c01ac8737268fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取帧id(不包括标志位)  <a href="classlibemb_1_1_c_a_n_frame.html#a5e7e0059049f843dd1c01ac8737268fe">More...</a><br /></td></tr>
<tr class="separator:a5e7e0059049f843dd1c01ac8737268fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ec1810218164334e41fa8c8ab5e23b6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_base_type_8h.html#a01991db9cc388cf9815386e13465f332">uint32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_c_a_n_frame.html#a2ec1810218164334e41fa8c8ab5e23b6">canid</a> ()</td></tr>
<tr class="memdesc:a2ec1810218164334e41fa8c8ab5e23b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取帧id(包括标志位)  <a href="classlibemb_1_1_c_a_n_frame.html#a2ec1810218164334e41fa8c8ab5e23b6">More...</a><br /></td></tr>
<tr class="separator:a2ec1810218164334e41fa8c8ab5e23b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9209fc6539db6a51c71a60b93b5f6d9d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_c_a_n_frame.html#a9209fc6539db6a51c71a60b93b5f6d9d">dataLen</a> ()</td></tr>
<tr class="memdesc:a9209fc6539db6a51c71a60b93b5f6d9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取帧数据长度  <a href="classlibemb_1_1_c_a_n_frame.html#a9209fc6539db6a51c71a60b93b5f6d9d">More...</a><br /></td></tr>
<tr class="separator:a9209fc6539db6a51c71a60b93b5f6d9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a876fcebd111b67cbdb9f41a66722915f"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_c_a_n_frame.html#a876fcebd111b67cbdb9f41a66722915f">data</a> ()</td></tr>
<tr class="memdesc:a876fcebd111b67cbdb9f41a66722915f"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取帧数据  <a href="classlibemb_1_1_c_a_n_frame.html#a876fcebd111b67cbdb9f41a66722915f">More...</a><br /></td></tr>
<tr class="separator:a876fcebd111b67cbdb9f41a66722915f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:af2bc22159b5be4520b3e9a917fd5152f"><td class="memItemLeft" align="right" valign="top"><a id="af2bc22159b5be4520b3e9a917fd5152f"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>SocketCAN</b></td></tr>
<tr class="separator:af2bc22159b5be4520b3e9a917fd5152f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>CAN帧 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a9d3566297b0925c99c2b738c885c6084"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d3566297b0925c99c2b738c885c6084">&#9670;&nbsp;</a></span>CANFrame() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">libemb::CANFrame::CANFrame </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_base_type_8h.html#a01991db9cc388cf9815386e13465f332">uint32</a>&#160;</td>
          <td class="paramname"><em>canid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CAN帧构造函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">canid</td><td>帧id(包括标志位) </td></tr>
    <tr><td class="paramname">data</td><td>数据 </td></tr>
    <tr><td class="paramname">len</td><td>数据长度 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a96a313e7ef4d15d79f6b292c4d03b6de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96a313e7ef4d15d79f6b292c4d03b6de">&#9670;&nbsp;</a></span>CANFrame() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">libemb::CANFrame::CANFrame </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_base_type_8h.html#a01991db9cc388cf9815386e13465f332">uint32</a>&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a>&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a>&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CAN帧构造函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>帧id(不包括标志位) </td></tr>
    <tr><td class="paramname">data</td><td>数据 </td></tr>
    <tr><td class="paramname">len</td><td>数据长度 </td></tr>
    <tr><td class="paramname">format</td><td>帧格式 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a2ec1810218164334e41fa8c8ab5e23b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ec1810218164334e41fa8c8ab5e23b6">&#9670;&nbsp;</a></span>canid()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_base_type_8h.html#a01991db9cc388cf9815386e13465f332">uint32</a> libemb::CANFrame::canid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取帧id(包括标志位) </p>
<dl class="section return"><dt>Returns</dt><dd>uint32 </dd></dl>

</div>
</div>
<a id="a876fcebd111b67cbdb9f41a66722915f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a876fcebd111b67cbdb9f41a66722915f">&#9670;&nbsp;</a></span>data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * libemb::CANFrame::data </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取帧数据 </p>
<dl class="section return"><dt>Returns</dt><dd>char* </dd></dl>

</div>
</div>
<a id="a9209fc6539db6a51c71a60b93b5f6d9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9209fc6539db6a51c71a60b93b5f6d9d">&#9670;&nbsp;</a></span>dataLen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a> libemb::CANFrame::dataLen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取帧数据长度 </p>
<dl class="section return"><dt>Returns</dt><dd>uint8 </dd></dl>

</div>
</div>
<a id="a82fc12322f701770a392b46c623e6fa6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82fc12322f701770a392b46c623e6fa6">&#9670;&nbsp;</a></span>error()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a> libemb::CANFrame::error </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取帧错误 </p>
<dl class="section return"><dt>Returns</dt><dd>uint8 </dd></dl>

</div>
</div>
<a id="aebbf7eadd5abaf28ae3260947674b607"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebbf7eadd5abaf28ae3260947674b607">&#9670;&nbsp;</a></span>format()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a> libemb::CANFrame::format </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取帧格式 </p>
<dl class="section return"><dt>Returns</dt><dd>uint8 </dd></dl>

</div>
</div>
<a id="a5e7e0059049f843dd1c01ac8737268fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e7e0059049f843dd1c01ac8737268fe">&#9670;&nbsp;</a></span>id()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_base_type_8h.html#a01991db9cc388cf9815386e13465f332">uint32</a> libemb::CANFrame::id </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取帧id(不包括标志位) </p>
<dl class="section return"><dt>Returns</dt><dd>uint32 </dd></dl>

</div>
</div>
<a id="ae0c92ba7b884be4d9a35e6db4bf6332c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0c92ba7b884be4d9a35e6db4bf6332c">&#9670;&nbsp;</a></span>type()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_base_type_8h.html#addd0d1ba39d05a893db9eba78123ee5a">uint8</a> libemb::CANFrame::type </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取帧类型 </p>
<dl class="section return"><dt>Returns</dt><dd>uint8 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="_socket_8h_source.html">Socket.h</a></li>
<li>src/Socket.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
